package com.grep.base.jsoup;


import java.util.List;
import java.io.File;

import com.grep.base.InitC3p0Logback;
import com.grep.base.dao.TestContentUrlDAOSQL4399;
import com.grep.extra.factory.utils.JsoupUtil;

public class DownPageConent {
	
	static JsoupUtil ju;
	
	public static void main(String[] args){
		//InitC3p0Logback icl = new InitC3p0Logback();
		pageurl();
		
	}
	
	
	
	private static void pageurl(){
		
		//TestContentUrlDAOSQL4399 tcuds = new TestContentUrlDAOSQL4399();
		
//		List<String> pageurls = tcuds.getContentUrl();
//		
//		String addsql = "http://www.4399.com";
		
		String separator = File.separator;
		
		String filename ="F:"+separator+"4399game"+separator+"4399tiyu"+separator+"1.html";
		
		ju = new JsoupUtil("http://www.4399.com/flash/10305.htm");
		ju.writeContentFile(filename);
		
		
//		int i=0;
		
//		for(String url:pageurls){
//			
//			i++;
//			if(i==1){
//			
//				if (url.startsWith("http:")) {
//					ju = new JsoupUtil(url);
//					String filename ="F:"+separator+"4399game"+separator+"4399tiyu"+separator+i+".html";
//					System.out.println(filename);
//					ju.writeContentFile(filename);
//				} else {
//					url = addsql + url;
//					String fname ="F:"+separator+"4399game"+separator+"4399tiyu"+separator+i+".html";
//					System.out.println(fname);
//					ju.writeContentFile(fname);
//					
//				}
//			}
 
//		}
		
	}
	
	
	
	
	
	
}
